package com.flyco.config;


import com.flyco.common.util.BizUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Biz配置文件
 */
@Slf4j
@Configuration
public class BizConfig {
    @Value(value = "${flyco.path.apiUrl}")
    private String apiUrl;
    @Value(value = "${flyco.path.serverUrl}")
    private String serverUrl;
    @Value(value = "${flyco.path.ssoUrl}")
    private String ssoUrl;
    @Value(value = "${flyco.path.rootUrl}")
    private String rootUrl;
    @Value(value = "${flyco.path.wxmaUrl}")
    private String wxmaUrl;
    @Value(value = "${flyco.path.oaUrl}")
    private String oaUrl;


    @Bean
    public void initBiz(){
        BizUtil.setApiUrl(apiUrl);
        BizUtil.setServerUrl(serverUrl);
        BizUtil.setSsoUrl(ssoUrl);
        BizUtil.setRootUrl(rootUrl);
        BizUtil.setWxmaUrl(wxmaUrl);
        BizUtil.setOaUrl(oaUrl);

    }

}
